package org.thunms.framework.utils;

import java.beans.PropertyEditorSupport;

import org.apache.commons.lang3.StringUtils;


public class CustomBooleanEditor  extends PropertyEditorSupport {

	@Override
	public String getAsText() {
		return String.valueOf(this.getValue());
	}

	@Override
	public void setAsText(String text) throws IllegalArgumentException {
		
			this.setValue(UtilBoolean.parseBoolean(text));
		
		
	}

}
